package com.hddznet.uniplatform.sm.vo.request;

import com.hddznet.uniplatform.sm.entity.BusZyPreparStepEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value="ReqZyPreparStepModify", description="作业准备步骤新增对象")
public class ZyPreparStepModifyReq extends  ZyPreparStepAddReq {

	@ApiModelProperty(value = "id", name = "id", required = true,  example = "")
	private String id;

	public static BusZyPreparStepEntity fromEntity(ZyPreparStepModifyReq req) {
		BusZyPreparStepEntity entity = ZyPreparStepAddReq.fromEntity(req);
		entity.setId(req.getId());
		return entity;
	}
}
